package com.etc.service.impl;

import com.etc.dao.BuildingDao;
import com.etc.entity.Building;
import com.etc.service.BuildingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class BuildingServiceImpl implements BuildingService {
    @Resource
    private BuildingDao buildingDao;
    @Override
    public List<Building> findAllBuilding() {
        return buildingDao.findAllBuilding();
    }

    @Override
    public List<Building> findByAnyCondition(Map<String, Object> map) {
        return buildingDao.findByAnyCondition(map);
    }

    @Override
    public Building findById(Integer id) {
        return buildingDao.findById(id);
    }

    @Override
    public List<Building> findByPark(Integer id) {
        return buildingDao.findByPark(id);
    }
}
